<html ng-app="app">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link href="../../build/common/base.css" rel="stylesheet">
	<script type="text/javascript" src="../../build/common/base.js"></script>
	<script type="text/javascript" src="../../build/common/ngEdit.js"></script>
	<script type="text/javascript">

		var app = angular.module('app', ['baseDirective']);
		app.controller("ctrl", [ '$scope', 'baseService','ArrayToolService', function($scope, baseService,ArrayTool) {
			$scope.ArrayTool=ArrayTool;
			
			$scope.addRow=function(classVar){
				$scope.data[classVar +"List"].push({});
			}
			
			$scope.$root.$on('afterSaveEvent', function(event,data){
				if(parent.reload){
					parent.reload();
				}
				if(data.r){
					location.reload();
				}else{
					$.Dialog.close(window);	
				}
			});
		}]);
	</script>
</head>
<body class="panel success" ng-controller="ctrl">
	<div class="panel-heading">
		<button  class="btn btn-primary fa-save" ng-model="data" ab-save="/sys/gysgGysryxx/save">保存</button>
		<button class="btn btn-primary fa-close" onclick="javascript:$.Dialog.close(window);">关闭</button>
	</div>
	<form name="form" method="post" ab-load="/sys/gysgGysryxx/get?id={id}" ng-model="data">
		<table class="form-table">
			<tr>								
				<th>公司名称:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.gsmc"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>性质:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.xz"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>提供服务:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.tgfw"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>人数:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.rs"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>联系人姓名:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.lxrxm"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>联系人电话:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.lxrdh"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>总经理姓名:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.zjlxm"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>总经理电话:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.zjldh"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
		</table>
		
	</form>
</body>
</html>